package com.blb.community.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.community.pojo.zy.ZyVisitor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author sun12
 * @description 针对表【zy_visitor(访客邀请 )】的数据库操作Mapper
 * @createDate 2023-11-20 20:41:27
 * @Entity com.blb.community.pojo.zy.ZyVisitor
 */
@Mapper
public interface ZyVisitorMapper extends BaseMapper<ZyVisitor> {

    /**
     * 访客列表分页
     *
     * @param page
     * @return
     */

    Page<ZyVisitor> selectPage(Page page,
                               String visitorName,
                               String visitorDate,
                               String visitorPhoneNumber,
                               Long communityId);

    /**
     * 根据业主id查找访客列表
     * @param createById
     * @return
     */
    List<ZyVisitor> selectByCreateById(Long createById);

}




